<template>
    <cc :msg="info.msg" :say="info.say" @giveF="getF">
        <div class="i-tip">获取传入值：{{ info.val }}</div>
    </cc>
</template>

<script setup>
import { reactive } from "vue"
import cc from "./cc.vue"
let info = reactive({
    msg: "一个程序员",
    say: "18岁",
    val: ""
})
function getF(d) {
    info.val = d;
}
</script>
